package com.it.rabbitmqwithjiang.Listener;

import com.it.rabbitmqwithjiang.Dao.MessageDao;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.io.IOException;


@Component
public class TopicListener2 {
	
	@RabbitListener(queues = "topicqueue2")
	public void TopicMessage(MessageDao messageDao) throws IOException {
		System.out.println("从topicqueue2取出消息"+ messageDao.toString());
		}
}
